<template>
  <div class="stuStoreContainer">
    <BasicTable :data="data" :column="column"></BasicTable>
  </div>
</template>

<script>
import BasicTable from "@/components/BasicTable/BasicTable"
import { getStuStore } from '@/api/user'
import { tableColumn } from '@/constants/stuScore'

export default {
  name: "index",
  components: {
    BasicTable
  },
  data() {
    return {
      column: tableColumn,
      data: []
    }
  },
  methods: {
    async getData() {
      const res = await getStuStore()
      if (res.success == true) {
        this.data = res.data || []
      } else {
        this.$message.error(res.errorMsg)
      }
    }
  },
  created() {
    this.getData()
  }
}
</script>

<style scoped lang="sass">
.stuStoreContainer
  padding: 20px
</style>
